<?php if(get('ini_bulletin')&&get('ini_mbull')){?>
<div id="bulletin">
	<ul>
<?php if (!get('ini_custom_bulletin')){
$loop = new WP_Query( array( 'post_type' => 'bulletin', 'posts_per_page' => get('ini_bulletin_num') ) );
while ($loop->have_posts()): $loop->the_post();
?>
		<li><a href="<?php the_permalink(); ?>"><?php utf8_str(the_title(),0,30)?></a></li>
<?php endwhile; }
else { echo get('ini_bulletin_code');}?>
	</ul>
	<center class="close">×</center>
</div>
<?php } ?>